"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MongodbManager = void 0;
class MongodbManager {
    constructor() {
        this.dbMap = new Map();
        // public async createClient(dbName: string) {
        //     let dbConfig: DbConfig = DbConfig.getDbConfig(DbConfig.now_db_type)
        //     let client: MongodbClient = await MongodbClient.create(dbName, dbConfig.host, dbConfig.port, dbConfig.user, dbConfig.pass);
        //     this.dbMap.set(dbName, client);
        //     return client;
        // }
        // public async getDb(dbName: string) {
        //     let db: MongodbClient;
        //     if (this.dbMap.has(dbName)) {
        //         db = this.dbMap.get(dbName);
        //     } else {
        //         let dbType: number = DbConfig.now_db_type;
        //         Logger.info("数据库client", dbName, dbType);
        //         db = await this.createClient(dbName);
        //     }
        //     return db;
        // }
    }
    init() {
        return __awaiter(this, void 0, void 0, function* () {
        });
    }
}
exports.MongodbManager = MongodbManager;
MongodbManager.instance = new MongodbManager();
